<template>
    <h3>插槽基础知识</h3>
    <slot name="header" :msg="childMsg"></slot>
</template>

<script>
export default {
    data() {
        return {
            childMsg: '子组件数据'
        }
    }
}
</script>